package com.jdrx.sw.sewage.beans.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@ApiModel(value = "AlarmCurveSnapPO", description = "告警曲线快照")
@Data
public class AlarmCurveSnapPO implements Serializable {
    private static final long serialVersionUID = -1206960462117924923L;

    @ApiModelProperty(value = "告警关联id", required = true)
    private Long alarmId;

    @ApiModelProperty(value = "告警值", required = true)
    private Double alarmValue;

    @ApiModelProperty(value = "记录时间（时间颗粒度为1小时）", required = true)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "租户id")
    private String dataNode;
}